<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>自动防跟卖记录</title>
<link href="<%=path %>/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=path %>/js/jquery.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$("#tablist").hide();
	});
</script>

<style>
.select {
	height: 36px;
	padding-left: 15px;
	width: 285px;
	border: solid 1px #ced9df;
}
</style>

</head>


<body>

	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="#">首页</a></li>
			<li><a href="#">亚马逊代购管理</a></li>
			<li><a href="#">自动防跟卖记录</a></li>
		</ul>
	</div>

	<div class="rightinfo">

		<!-- <div class="tools">

			<ul class="toolbar">
				<li
					style="background: #F4D27F; padding-left: 10px; width: 117px; text-align: center;"
					onclick="location.href='flowsale.jsp'">&nbsp;&nbsp;新增任务&nbsp;<img
					src="images/t01.png" style="vertical-align: middle;" /></li>
				<li class="click"><span><img src="images/t02.png" /></span>修改</li>
				<li><span><img src="images/t03.png" /></span>删除</li>
				<li><span><img src="images/t04.png" /></span>统计</li>
			</ul>
			&nbsp;&nbsp; <input type="text" class="dfinput" placeholder="请输入ASIN" />
			<img src="images/search1.png" style="vertical-align: middle;"
				width="30" height="30" />
			<input type="button" class="btn" value="查询任务"  style="background:#F4D27F;color:#000000;font-weight:normal;font-family: 微软雅黑;"/>

		</div> -->
		<div class="formtitle">
						<span>监控设置信息</span>
					</div>
					<form action="<%=path%>/task.do?m=add" method="post">
				<input type="hidden" name="id" value="${info.id }" /> <input
					type="hidden" name="orderNo" value="${info.orderNo }" /> <input
					type="hidden" name="type" value="${param.type }" />
				<div id="usual1" class="usual">
					<!-- <ul class="toolbar1">
					<li style="border: none; background: none;">
						<input name="" type="submit" class="btn" value="确认保存" />&nbsp;&nbsp;
						<input name="" type="button" class="btn" value="在线支付" onclick="location.href='pay.jsp'" />
					</li>
				</ul> -->
					<!--<div class="itab">
					<ul>
						<li><a href="#tab1" class="selected">任务信息</a></li>
						<li><a href="#tab2">任务信息</a></li>
					</ul>
				</div> -->
					

					<div id="tab1" class="tabson">
						<table style="margin-bottom: 20px; width: 100%;">
							<tr style="height: 50px;">
								<td align="right">站点<b>*</b></td>
								<td colspan="6">&nbsp;&nbsp;<input type="radio" name="rdoc" />美国
									&nbsp;&nbsp;<input type="radio" name="rdoc" />德国 <input
									type="radio" name="rdoc" />英国<!-- [填写ASIN码的时候，提示选择站点；] -->
								</td>
							</tr>
							<tr>
							
								<td align="right"><label>ASIN<b>*</b></label>&nbsp;&nbsp;</td>
								<td><input placeholder="请输入产品ASIN" name="asin"
									value="${info.asin }" style="width:180px;" type="text" class="dfinput"
									required="required" /></td>
							
						
								<td align="right"><label>自己卖家ID<b>*</b></label>&nbsp;&nbsp;</td>
								<td><input name="pro_key"
									placeholder="" value="${info.pro_key }"
									required="required" style="width:180px;"  type="text" class="dfinput" /></td>
								<td align="right"><label>授权跟卖卖家ID<b>*</b></label>&nbsp;</td>
								<td><input name="pro_url"
									value="${info.pro_url }" style="width:180px;"  type="text" required="required"
									class="dfinput" /></td>
										<td>
										<input name="" type="submit" class="btn" value="保存" />
										</td>
							</tr>
						</table>
					</div>
					
				</div>
			</form>
		<div class="formbody">
		<table class="usertablelist" id="tabpay">
			<thead>
				<tr >
                    <th style="background:rgba(62, 175, 224, 0.35);">站点</th>
					<th style="background:rgba(62, 175, 224, 0.35);">ASIN号码</th>
					<th style="background:rgba(62, 175, 224, 0.35);">自己卖家ID</th>
					<th style="background:rgba(62, 175, 224, 0.35);">授权跟卖卖家ID</th>
					<th style="background:rgba(62, 175, 224, 0.35);">常用操作</th>
				</tr>
			</thead>
			<tr>
			        <td>美国</td>
					<td>xxx</td>
					<td>xxx</td>
					<td>2016-05-06 23:49:42</td>
					<td><a href="#">【修改】</a><a href="#">【删除】</a></td>
				</tr>
			</table>
			
		</div>
		<div class="formtitle">
			<span>监控记录</span>
		</div>
		<table class="usertablelist" id="tabpay">
			<thead>
				<tr>

					<th style="background:rgba(62, 175, 224, 0.35);">ASIN号码</th>
					<th style="background:rgba(62, 175, 224, 0.35);">跟卖ID</th>
					<th style="background:rgba(62, 175, 224, 0.35);">跟卖开始时间</th>
					<th style="background:rgba(62, 175, 224, 0.35);">跟卖次数</th>
					<th style="background:rgba(62, 175, 224, 0.35);">跟卖售价</th>
					<th style="background:rgba(62, 175, 224, 0.35);">应对措施</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td>xxx</td>
					<td>xxx</td>
					<td>2016-05-06 23:49:42</td>
					<td>11</td>
					<td>$1.22</td>
					<td><a href="#">【发邮件警告】</a><a href="#">【下测试订单】</a><a href="#">【下0成本可撤销订单】</a><a
						href="#">【下A2Z订单】</a></td>
				</tr>
			</tbody>
		</table>



		<jsp:include page="../common/homepage.jsp" flush="true">
			<jsp:param value="task.do?m=info" name="action" />
		</jsp:include>

		<div class="tip">
			<div class="tiptop">
				<span>提示信息</span><a></a>
			</div>

			<div class="tipinfo">
				<span><img src="<%=path %>/images/ticon.png" /></span>
				<div class="tipright">
					<p>是否确认对信息的修改 ？</p>
					<cite>如果是请点击确定按钮 ，否则请点取消。</cite>
				</div>
			</div>

			<div class="tipbtn">
				<input name="" type="button" class="sure" value="确定" />&nbsp; <input
					name="" type="button" class="cancel" value="取消" />
			</div>

		</div>

	</div>

	<script type="text/javascript">
		$('.tablelist tbody tr:odd').addClass('odd');
		var rdo1 = $("#rdo1");
		var rdo2 = $("#rdo2");
		var rdo3 = $("#rdo3");
		$(function() {

			$(".btn").click(function() {

				if (rdo1.attr("checked")) {
					location.href = 'task.do?m=info&orderState=';
				} else if (rdo2.attr("checked")) {
					location.href = 'task.do?m=info&orderState=0';
				} else {
					location.href = 'task.do?m=info&orderState=1';
				}
			});

			var orderState = '${param.orderState}';
			if (orderState == "") {

				rdo1.attr("checked", "checked");
			} else if (orderState == 0) {

				rdo2.attr("checked", "checked");
			} else {

				rdo3.attr("checked", "checked");
			}
			rdo1.click(function() {
				search();
			});
			rdo2.click(function() {
				search();
			});
			rdo3.click(function() {
				search();
			});

		});

		function search() {
			if (rdo1.attr("checked")) {
				location.href = 'task.do?m=info&orderState=';
			} else if (rdo2.attr("checked")) {
				location.href = 'task.do?m=info&orderState=0';
			} else {
				location.href = 'task.do?m=info&orderState=1';
			}
		}
	</script>

</body>
</html>